<?php echo $this->Html->link('Adicionar fornecedor',array('controller' => 'fornecedores', 'action' => 'add'), array('class' => 'btn btn-default pull-right'))?>
<table class="table">
  <thead>
    <tr>
      <th>Nome</th>
      <th>Telefone</th>
      <th>E-mail</th>
      <th>Data de Cadastro</th>
      <th>Ações</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($fornecedores as $fornecedor): ?>
    <tr>
        <td>
            <?php echo $this->Html->link($fornecedor['Fornecedor']['nome'],
              array('controller' => 'fornecedores', 'action' => 'view', $fornecedor['Fornecedor']['id'])); ?>
        </td>
        <td><?php echo $fornecedor['Fornecedor']['telefone']; ?></td>
        <td><?php echo $fornecedor['Fornecedor']['email']; ?></td>
        <td><?php echo $fornecedor['Fornecedor']['created']; ?></td>
        <td>
            <?php echo $this->Html->link('Remover', array('action' => 'delete', $fornecedor['Fornecedor']['id']), array('class' => 'btn btn-default'), 'Deseja remover?' )?>
            <?php echo $this->Html->link('Editar', array('action'=>'edit', $fornecedor['Fornecedor']['id']), array('class' => 'btn btn-default'));?>
        </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
